package com.imooc.service;


import com.imooc.pojo.Users;
import com.imooc.pojo.bo.UserBo;
import org.springframework.stereotype.Service;

public interface UserService {

    /**
     * 判断用户名是否存在
     *
     * @return
     */
    public boolean queryUsernameIsExist(String username);


    /**
     * 创建用户
     *
     * @param userBo
     * @return
     */
    public Users createUser(UserBo userBo);

    /**
     * 登录
     *
     * @return
     */
    public Users queryUserForLogin(String username, String password);

}
